package com.homestead.redis;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author HanBin_Yang
 * @since 2021/7/1 9:58
 */
@Data
public class ReceiveBeforeGivingCacheDto {
    @ApiModelProperty(value = "劵赠送的主键id")
    private Long id;

    @ApiModelProperty(value = "券主键")
    private Long couponId;

    @ApiModelProperty(value = "券活动id")
    private Long couponThemeId;

    @ApiModelProperty(value = "失效时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date expireTime;

    @ApiModelProperty(value = "赠送者userid")
    private String giveNickname;
    /**
     * 赠送者头像地址
     */
    private String giveAvatar;
    /**
     * 券有效时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
}
